'use strict'


class getotherarticles{
    constructor(){
        this.param = '/'
    }

    async get(c){
        c.setHeader('content-type', 'text/html; charset=utf-8');
        let a = c.service.fun;
        let {user_id} = c.query; 
        let data = await a.sel('article_list',{'poster_id':`${user_id}`},['article_id','article_title','article_txt','article_img','article_time'],c.service.pool);

        c.send({
            type:'array',
            data:data.rows
        })



    }
}

module.exports = getotherarticles
